package jangdolbaeng2.tools;

import java.io.BufferedReader;

import oracle.sql.CLOB;

public class ClobToString {
	
	public static String change(CLOB clob) {
		
		StringBuffer s = new StringBuffer();
		try {
		    BufferedReader br = new BufferedReader(clob.getCharacterStream());
		    String ts = "";
		    while((ts = br.readLine()) != null) {
		           s.append(ts + "\n");
		        }
		        br.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		   
			return s.toString();
	 }//change()

}//class
